home *** CD-ROM | disk | FTP | other *** search
- Path: svnews.ubinet.ubs.com!ubszh!ian.johnston@ubs.com
- From: ian.johnston@ubs.com
- Newsgroups: comp.lang.c++
- Subject: Re: C++ experts only
- Date: 1 Apr 1996 10:39:39 GMT
- Organization: UBS
- Distribution: world
- Message-ID: <4jobpb$ka@ubszh.fh.zh.ubs.com>
- References: <4jhrb4$gk2@melon.myna.com>
- NNTP-Posting-Host: nol2179.fh.zh.ubs.com
-
- In article <4jhrb4$gk2@melon.myna.com>, ckhan@myna.com (Colin Khna) writes:
- |> If you are such an expert, tell me why C++ is so great or not so great as
- |> compared to Structured C.
-
- Tell me, why is this Ford Mondeo with ABS, traction control, airbags,
- power windows, cruise control and a sunroof better than this Ford Mondeo
- without all those things?
-
- C++ *is* structured C. (Or can pretend to be.)
-
- Start with the easy things:
-
- - stronger type checking
- - const enforcement
- - automatic variable initialisation
- - automatic variable destruction
- - inline functions
- - templates for code reuse
- - type safe I/O
-
-
- Some of the less obvious things:
-
- - data encapsulation
- - inheritance for code reuse
- - inheritance for design reuse
- - flexibility of designs (virtual functions vs type switches)
-
-
- That's just off the top of my head.
-
- Ian
-
-